//原型模式优化
function Person(name) {

}
Person.prototype = {
    constructor: Person,
    name: 'kevin',
    getName: function () {
        console.log(this.name);
    }
};

var person1 = new Person();
console.log(person1.getName())